<?php

/**
 * region actions.
 *
 * @package    s-test
 * @subpackage region
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class regionActions extends sfActions
{
  public function executeShow(sfWebRequest $request)
  {
    $this->ktd_region = Doctrine::getTable('KTDRegion')->find(array($request->getParameter('id')));
    $this->pager = $this->ktd_region->getPagerAdventures(sfConfig::get("app_max_adventures_on_region"), $request->getParameter('page', 1));
    $this->ktd_adventures = $this->pager->getResults();
    $this->forward404Unless($this->ktd_region);
  }
    public function executeInfos(sfWebRequest $request)
  {
    $this->ktd_region = Doctrine::getTable('KTDRegion')->find(array($request->getParameter('id')));
    $this->forward404Unless($this->ktd_region);
  }
}
